Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /** * Utility functions for category display names * Maps database category names to user-friendly display names */ /** * Get the display name for a category * @param categoryName - The category name from the database * @returns The user-friendly display name */ export const getDisplayCategoryName = (categoryName: string): string => { switch (categoryName) { case 'VOD': return 'Movies'; case 'Eventos': return 'Events'; default: return categoryName; } }; /** * Get the database name for a category from its display name * @param displayName - The user-friendly display name * @returns The database category name */ export const getDatabaseCategoryName = (displayName: string): string => { switch (displayName) { case 'Movies': return 'VOD'; case 'Events': return 'Eventos'; default: return displayName; } }; |